package com.kerrykidz.workflow.controller;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.kerrykidz.workflow.service.IWorkflowService;
import com.kerrykidz.workflow.vo.TypeVo;
import com.rdp.framework.exception.RDPException;

/**
 * 请假流程控制器
 * @author zhuss
 *
 */
@Controller
@RequestMapping(value = "/workflow")
public class WorkflowController {
	private static Logger logger = LoggerFactory.getLogger(WorkflowController.class);
	
	@Autowired
	IWorkflowService workflowService;
	
	 /**
	  * 流程类型
	  * @return
	  */
	 @RequestMapping(value = "/queryWorkflowType")
	 @ResponseBody
	 public List<TypeVo> queryWorkflowType() throws RDPException{
		 logger.debug("");
		 return workflowService.queryProcDef();
	 }
}
